package com.xrit.sunnyday.dao;

import com.xrit.sunnyday.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    /**
     * 通过日期来查询这一天的预约设置信息
     */
    OrderSetting findByOrderData(Date orderDate);
    /**
     * 更新可预约人数
     */
    void updateNumber(OrderSetting os);

    /**
     * 添加预约设置
     */
    void add(OrderSetting os);

    List<Map<String, Integer>> getOrderSettingByMonth(String startDate);

    void editReservationsByOrderDate(OrderSetting orderSetting);
}
